<template>
	<view>
		<view class="bg-white padding">
			<view class="text-xl text-center">这是首页
			<button @click="$u.throttle(getInfo, 1000)" type="default">getUserInfo</button>
			<view></view>
			</view>
		</view>

	</view>
</template>
<script>
	import {getUserInfo} from '@/common/apis/login.js'
	export default {
		data() {
			return {

			};
		},
		onLoad(parms) {
			console.log(this.$config)
			let shareInfo = {}
			shareInfo.title = '快速开发框架'
			shareInfo.path = 'pages/index/index'
			this.setShareInfo(shareInfo)
			
		},
		onUnload() {
		
		},
		methods: {
			getInfo(){
				getUserInfo()
			}
			
		}
	}
</script>

<style lang="less" scoped>

</style>
